package com.cqan.box.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;

@Entity
//表名与类名不相同时重新定义表名.
@SuppressWarnings("serial")
@Table(name = "TBL_BOX_USER_BOX_TOKEN")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class UserBox extends LongEntity {
		
		//appid
		private String ab;
		
		//记录时间
		private Date ctime;

		//设备ID号
		private String did;
		
		//app token
		private String token;
		
		//会话ID
		private String asid;
		
		//BOX 唯一标识
		private String boxid;
		

		public String getBoxid() {
			return boxid;
		}

		public void setBoxid(String boxid) {
			this.boxid = boxid;
		}

		public String getAb() {
			return ab;
		}

		public void setAb(String ab) {
			this.ab = ab;
		}

		public Date getCtime() {
			return ctime;
		}

		public void setCtime(Date ctime) {
			this.ctime = ctime;
		}

		public String getDid() {
			return did;
		}

		public void setDid(String did) {
			this.did = did;
		}

		public String getToken() {
			return token;
		}

		public void setToken(String token) {
			this.token = token;
		}

		public String getAsid() {
			return asid;
		}

		public void setAsid(String asid) {
			this.asid = asid;
		}

		
}
